package project.model;

import java.awt.Point;

public class MagicRoom extends ARoom{
    private String magicWord;
    
    public MagicRoom(int num, Point point, String word) {
        super(num, point);
        this.magicWord = word;
    }

    public String getMagicWord() {
        return magicWord;
    }

    @Override
    public boolean isMagicRoom() {
        return true;
    }

	@Override
	public boolean goInRoom(Hero hero) {
		if(isVisitorInRoom()){
			return false;
		} else {
			setVisitor(hero);
			return true;
		}
	}

}
